package com.yida.wy.vote.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lqq
 * @date 2023-03-13
 */
@ApiModel("投票审批请求")
public class WyVoteAuditRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票ID")
	@NotNull(message = "请求参数有误[voteId]为空")
	private Long voteId;

	@ApiModelProperty("审批意见")
	@NotBlank(message = "请输入审批意见")
	private String auditOpinion;

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public String getAuditOpinion() {
		return auditOpinion;
	}

	public void setAuditOpinion(String auditOpinion) {
		this.auditOpinion = auditOpinion;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteAuditRequest{");
		sb.append("voteId=").append(voteId);
		sb.append(", auditOpinion='").append(auditOpinion).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
